package pl.enigmatic.parser.xml.pl.edu.enigma.math.graph;

import static pl.enigmatic.parser.xml.pl.edu.enigma.math.graph.SelfBasedTreeParser.ADD_CHILD;
import static pl.enigmatic.parser.xml.pl.edu.enigma.math.graph.SelfBasedTreeParser.CHILDREN;
import pl.enigmatic.math.graph.SelfBasedTree.SimpleImpl;
import pl.enigmatic.math.graph.Tree;
import pl.enigmatic.parser.xml.CollectionPropertyExtension;
import pl.enigmatic.parser.xml.Parser;


public class SelfBasedTree {

	public static class SimpleImplParser extends Parser<SimpleImpl> {

		public SimpleImplParser() {
			super(SimpleImpl.class, true);
		}

		@Override
		protected void addCustomModules() {
			addExtension(CollectionPropertyExtension.createCustom(this, CHILDREN, ADD_CHILD, Tree.class));
		}

		@Override
		protected String initContent() {
			return CHILDREN;
		}

	}
}
